 $(document).ready(function($)
{
  //$.sankofavVolunteer.loadVolunteer()
  // trigger event when button is clicked
 
  

});

var back = function() {
    window.location="window.history.back()";
}

var mouseover = function(){
    onMouseover="Take you to this page";
}

var count = 1;


// function to add a new row to a table by cloning the last row and
  // incrementing the name and id values by 1 to make them unique
  

saveinfo = function(){
        
        for(i=1;i<=count;i++)
         {sankofaEvent.addEvents(i)};
        console.log("clickedsubmit"+i);

      };
      
var takemetoinfo = function(i){
    
    window.location.href = '/aperture-sankofa/html/eventinfo.html?id=' + i;
    console.log("row");
    // sankofaVolunteerinfo.loadVolunteerinfo(i);

};

var addtoattending = function(){  
 console.log("called addtoattending");
 $("input[type='checkbox']:checked").each( function(){
    var $addbuttonid = $(this).attr("id");
    console.log($addbuttonid)
    sankofaEventPeopleAttendingVolunteerinfo.addPeopleattendinginfo($addbuttonid);
// your code

});

 
}
    

